package com.hymjweb.demo.framework.result;

import java.io.Serializable;

public class BaseResultMap implements Serializable {


    // 返回的状态
    private boolean ok;
    // 返回的消息
    private String message;
    // 返回时携带的数据对象
    private Object data;

    public BaseResultMap() {

    }

    public BaseResultMap(boolean ok, String message) {
        this.ok = ok;
        this.message = message;
    }

    public BaseResultMap(boolean ok, String message, Object data) {
        this.ok = ok;
        this.message = message;
        this.data = data;
    }

    public boolean isOk() {
        return ok;
    }

    public void setOk(boolean ok) {
        this.ok = ok;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
